﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=1">
    <meta name="format-detection" content="telephone=no">
    <meta charset="UTF-8">
    <title>vue初始化</title>
    <<link rel="stylesheet" href="../css/bootstrap.css"/>
    <script src="../js/jquery-2.2.0.min.js"></script>
    <script src="../js/bootstrap.min.js"></script>
</head>
<body>
    <h1>vue初始化</h1><br/>

    <div id="app">
        <!--moustache   小胡子语法也就是表达式-->
        {{name}}
    </div>
<script src="../js/vue-2.5.16.js"></script>
<script src="../node_modules/axios/dist/axios.js"></script>
<script src="../node_modules/lodash/lodash.js"></script>

<script>
    //引入vue后会给咱们一个Vue构造函数
    var vm = new Vue({  //vm == viewModel
        el:'#app',  //告诉vue能管理哪个部分，querySelector
        data:{      //data中的数据会被vm所代理
            name:'hello world!!!'//可以通过vm.msg取到对应的内容
        }
    });//Object.defineProperty
</script>

</body>
</html>